#!/bin/sh
chown root.audio /dev/hpet
chmod g+r /dev/hpet
chown root.audio /dev/rtc0
chmod g+r /dev/rtc0
cpufreq-set -c 0 -g performance
cpufreq-set -c 1 -g performance
/sbin/sysctl -w vm.swappiness=10

modprobe -r nsc_ircc
modprobe -r irda 
modprobe -r ppdev
modprobe -r yenta_socket
modprobe -r pcmcia
modprobe -r pcmcia_core
modprobe -r lp # I don't use a printer when making music
modprobe -r parport
modprobe -r parport_pc
modprobe -r firewire_ohci
modprobe -r firewire_core	
modprobe -r r8169 # NIC driver
modprobe -r btusb # Bluetooth USB
modprobe -r rfcomm
modprobe -r bnep
modprobe -r bluetooth

/etc/init.d/bluetooth stop & # Stop Bluetooth related processes
/etc/init.d/cups stop & # Stop cups, I don't use a printer when making music
/etc/init.d/networking stop & # Stop networking, the internet is a very distracting factor when making music

stop network-manager 
stop modem-manager 
killall nm-applet
killall gnome-screensaver

#modprobe snd-hrtimer # Load the ALSA high res timer for my MIDI stuff


#echo -n "0000:00:13.0" > /sys/bus/pci/drivers/ohci_hcd/unbind # Unbind a USB port, this one interferes with my onboard soundcard


